<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Statistics
 * @package App\Models
 * @version October 9, 2017, 11:05 am CST
 *
 * @property integer type
 * @property integer add_users_count
 * @property integer users_count
 * @property integer goods_count
 * @property integer orders_count
 * @property integer orders_add_count
 * @property integer orders_add_pay_count
 * @property integer orders_return_count
 * @property decimal orders_return_amount
 * @property decimal orders_return_rate
 * @property integer repurchase_count
 * @property decimal repurchase_rate
 * @property decimal orders_price_amount
 * @property decimal orders_pay_money_amount
 */
class Statistics extends Model
{
    use SoftDeletes;

    public $table = 'statistics';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'type',
        'date',
        'add_users_count',
        'users_count',
        'goods_count',
        'orders_count',
        'orders_add_count',
        'orders_add_pay_count',
        'orders_return_count',
        'orders_return_amount',
        'orders_return_rate',
        'repurchase_count',
        'repurchase_rate',
        'orders_price_amount',
        'orders_pay_money_amount',
        'json',
        'json2',
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
//    protected $casts = [
//        'type' => 'integer',
//        'add_users_count' => 'integer',
//        'users_count' => 'integer',
//        'goods_count' => 'integer',
//        'orders_count' => 'integer',
//        'orders_add_count' => 'integer',
//        'orders_add_pay_count' => 'integer',
//        'orders_return_count' => 'integer',
//        'repurchase_count' => 'integer'
//    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        
    ];

}
